/**
 * 
 */
package com.rostami.tutorial.spring.beanFactory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Alireza
 *
 */
public class BeanFactoryPostProcessor {
	private String message;
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public void printMessage(){
		System.out.println("From the class BeanFactoryPostProcessor: \t"+message);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext("SpringConfig.xml");
		BeanFactoryPostProcessor obj = (BeanFactoryPostProcessor)context.getBean("beanFactoryPostProcessorBean");
		obj.printMessage();
	}

}
